<?php
/**
 * @package scuttle
 * @file /admin/forms/WatchedAdminDeleteForm.class.php
 **/

if (!defined('XOOPS_ROOT_PATH')) exit();

require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php";
class Scuttle_WatchedAdminDeleteForm extends XCube_ActionForm
{

	function getTokenName()
	{
		return 'module.scuttle.WatchedAdminDelete.Form.TOKEN.' . $this->get('wId');
	}
	function prepare()
	{

		$this->mFormProperties['wId'] =& new XCube_IntProperty('wId');

		$this->mFieldProperties['wId'] =& new XCube_FieldProperty($this);
		$this->mFieldProperties['wId']->setDependsByArray(array('required'));
		$this->mFieldProperties['wId']->addMessage('required', _AD_SC_ERROR_REQUIRED, _AD_SC_ID);
	}

	function load(&$obj)
	{
		$this->set('wId', $obj->get('wId'));
	}
	function update(&$obj)
	{
		$obj->set('wId', $this->get('wId'));
	}

}

?>